VReplication: Improve Error/Status Reporting#12052
Conversation
Signed-off-by: Matt Lord <mattalord@gmail.com>
Review ChecklistHello reviewers! 👋 Please follow this checklist when reviewing this Pull Request. General
If a new flag is being introduced:
If a workflow is added or modified:
Bug fixes
Non-trivial changes
New/Existing features
Backward compatibility
|
Signed-off-by: Matt Lord <mattalord@gmail.com>
482a586 to
ec67dcc
Compare
Signed-off-by: Matt Lord <mattalord@gmail.com>
Signed-off-by: Matt Lord <mattalord@gmail.com>
29ccc27 to
6186b01
Compare
Signed-off-by: Matt Lord <mattalord@gmail.com>
6186b01 to
da59866
Compare
Signed-off-by: Matt Lord <mattalord@gmail.com>
30cf297 to
fc0895c
Compare
8de0fb5 to
6b623c5
Compare
Signed-off-by: Matt Lord <mattalord@gmail.com>
6b623c5 to
c487d1c
Compare
Also keeping mind that users can now modify the on_ddl value so that DDL comes through the stream. Signed-off-by: Matt Lord <mattalord@gmail.com>
| ERServerShutdown = 1053 | ||
|
|
||
| // not found | ||
| ERDbDropExists = 1008 |
There was a problem hiding this comment.
Changes in this file were just me ordering the subgroups by error code as it makes it easier to walk through all of them as I did to see what ones should be in the vreplication.unRecoverableError() list.
Signed-off-by: Matt Lord <mattalord@gmail.com>
Signed-off-by: Matt Lord <mattalord@gmail.com>
shlomi-noach
left a comment
There was a problem hiding this comment.
LGTM, a couple minor comments at your discretion
| case <-timedCtx.Done(): | ||
| wr.Logger().Printf("\nThe workflow did not start within %s. The workflow may simply be slow to start or there may be an issue.\n", | ||
| (*timeout).String()) | ||
| wr.Logger().Printf("Check the status using the 'Workflow %s show' client command for details.\n", ksWorkflow) |
There was a problem hiding this comment.
I wonder if it possible to check the status at this point and print the output? Save the user an extra step?
There was a problem hiding this comment.
IMO the output is already a little noisy and at this point (at least sub-second before) it had not yet started. I also like that we're informing/reminding them of the way to monitor the status and see the workflow details.
|
While ticking the review template, I noted
Could you please do that for the new |
Signed-off-by: Matt Lord <mattalord@gmail.com>
Signed-off-by: Matt Lord <mattalord@gmail.com>
Signed-off-by: Matt Lord <mattalord@gmail.com>
Description
This PR addresses the issues raised in the bug report along with some other related improvements that I saw were needed as I worked on the new troubleshooting guide:
Progress(which is a parent ofShow) actionShow/Progressaction output. For example:"Unknown column 'notes' in 'field list' (errno 1054) (sqlstate 42S22) during query: insert into customer(customer_id,email,notes) values (100,'test@tester.com','Lots of notes')"were not covered AND keeping in mind that users can now modify theon-ddlvalue and DDL may come through the streamClick here to see new and improved outputs from the test case in the bug report:
Related Issue(s)
Checklist